package com.hxs.hxsserver.config.redis;

/**
 * @Author: Andi
 * @Description:
 * @Date: 2020/4/23 15:25
 */
public class UserKey extends BasePrefix {
    public UserKey(String prefix) {
        super(prefix);
    }

    public UserKey(int expireSeconds, String prefix) {
        super(expireSeconds, prefix);
    }

    public static UserKey userToken = new UserKey(60 * 60 * 24, "userToken");
    /**
     * 图形验证码
     */
    public static UserKey picCode = new UserKey(60 * 2, "picCode");

    /**
     * ip请求次数限制
     */
    public static UserKey IpAccessLimit = new UserKey(60, "IpAccessLimit");

    /**
     * 设备地址
     */
    public static UserKey deviceAddr = new UserKey(60 * 60 * 24 * 365 * 10,"deviceAddr");
}
